package com.pqc.tbk.entity.order;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "tb_order")
public class Order {
	private Long id;
	private Long uid; // out_code
	private Double commission;// 淘宝返回佣金
	private Double user_commission;// 用户获得佣金
	private Double commission_rate;// 淘宝佣金比率
	private Double user_commission_rate;// 用户在网站上的佣金比率
	private String item_title;// 商品标题
	private Long item_num;// 成交数量
	private Long num_iid;// 商品编号
	private Double pay_price;// 支付金额
	private Double real_pay_fee;// 实际支付金额
	private Long trade_id;// 交易单号
	private Date pay_time;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}

	public void setId(final Long id) {
		this.id = id;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(final Long uid) {
		this.uid = uid;
	}

	public Double getCommission() {
		return commission;
	}

	public void setCommission(final Double commission) {
		this.commission = commission;
	}

	public Double getUser_commission() {
		return user_commission;
	}

	public void setUser_commission(final Double user_commission) {
		this.user_commission = user_commission;
	}

	public Double getCommission_rate() {
		return commission_rate;
	}

	public void setCommission_rate(final Double commission_rate) {
		this.commission_rate = commission_rate;
	}

	public Double getUser_commission_rate() {
		return user_commission_rate;
	}

	public void setUser_commission_rate(final Double user_commission_rate) {
		this.user_commission_rate = user_commission_rate;
	}

	public String getItem_title() {
		return item_title;
	}

	public void setItem_title(final String item_title) {
		this.item_title = item_title;
	}

	public Long getItem_num() {
		return item_num;
	}

	public void setItem_num(final Long item_num) {
		this.item_num = item_num;
	}

	public Long getNum_iid() {
		return num_iid;
	}

	public void setNum_iid(final Long num_iid) {
		this.num_iid = num_iid;
	}

	public Double getPay_price() {
		return pay_price;
	}

	public void setPay_price(final Double pay_price) {
		this.pay_price = pay_price;
	}

	public Double getReal_pay_fee() {
		return real_pay_fee;
	}

	public void setReal_pay_fee(final Double real_pay_fee) {
		this.real_pay_fee = real_pay_fee;
	}

	public Long getTrade_id() {
		return trade_id;
	}

	public void setTrade_id(final Long trade_id) {
		this.trade_id = trade_id;
	}

	public Date getPay_time() {
		return pay_time;
	}

	public void setPay_time(final Date pay_time) {
		this.pay_time = pay_time;
	}
}
